home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 4759 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: cosy.sbg.ac.at!not-for-mail
  2. From: gwesp@dodo.cosy.sbg.ac.at (Gerhard Wesp)
  3. Newsgroups: comp.sys.cbm,gnu.gcc.help,comp.sys.atari.8bit
  4. Subject: Re: GNU C-compiler port to 6502
  5. Date: 29 Mar 1996 10:57:52 +0100
  6. Organization: Dept. of CS, University of Salzburg
  7. Message-ID: <4jgc70$lmt@dodo.cosy.sbg.ac.at>
  8. References: <4irqpb$7pc@esel.cosy.sbg.ac.at> <4jbmcf$733@news.iastate.edu>
  9. NNTP-Posting-Host: dodo.cosy.sbg.ac.at
  10.  
  11. In article <4jbmcf$733@news.iastate.edu>,
  12. David Deaven <deaven@ishmael.ameslab.gov> wrote:
  13. >  Yes, I worked a bit on this.  What I currently have is not fully
  14. >functional but implements most of the things required for a full
  15. >ANSI compiler.  I never anticipated anything but a cross compiler,
  16. >using my workstation to compile code for my herd of Ataris.
  17.  
  18.  Wow! I hoped that somebody already dug into this a little.
  19. Would you mind making your work available so that I can try it
  20. out? I am surprised that it works at all without a virtual
  21. machine abstraction!
  22.  
  23. >  But the biggest choice of all is whether to let GCC manage the 6502
  24. >registers directly, or to use a sort of ``virtual machine'' model on
  25. >the 6502 that looks better to GCC (page zero registers, manipulated by
  26. >simple bits of native code that GCC thinks are single instructions).
  27.  
  28.  Exactly such sort of thing I thought of. The code could be
  29. implemented as macros and as subroutines for the more complex things
  30. like multiplicatio, division, floating point ops etc. (or we use
  31. pseudo ops triggered by a brk...)
  32.  
  33. Have a nice weekend!
  34.  
  35. Greetings,
  36. -Gerhard
  37.